/*
 * Copyright (c) 2023 AlgoIdeas
 *
 * HDF is dual licensed: you can use it either under the terms of
 * the GPL, or the BSD license, at your option.
 * See the LICENSE file in the root of this repository for complete details.
 */

#ifndef AHT20_H
#define AHT20_H

#include <stdint.h>

#define AHT20_DEVICE_ADDR       0x38

int32_t aht20_open(int32_t i2c_address, uint8_t aht20_address);

int32_t aht20_close(int32_t fp);

int32_t aht20_calibrate(int32_t fp);

int32_t aht20_start_measure(int32_t fp);

int32_t aht20_get_measure_result(int32_t fp, float* temp, float* humi);

#endif  // AHT20_H